import request from '..//index.js'
import qs from 'querystring'
//平台介绍
//1.1获取平台介绍
export const getplaint = params => {
    return request({
        method: 'GET',
        url: '/api/nsc/front/ndPlatformConf/getPlatformConf/',
        params
    })
}
//1.2保存平台介绍
export const postplaint = data => {
    return request({
        method: 'POST',
        url: '/api/nsc/admin/ndPlatformConf/saveOrUpdate',
        data
    })
}
//1.3 平台介绍得图片/api/nsc/material/uploads
export const imgss = params => {
    return request({
        method: 'POST',
        url: '/api/nsc/material/uploads',
        type:'change',
        headers: {'Content-Type': 'multipart/form-data'},
        // data:qs.stringify(params),
        data:params
    })
}

//########
//友情链接
//2.1分页 获取友情链接的接口
export const getLinks = params => {
    return request({
        method: 'GET',
        url: '/api/nsc/admin/ndFriendlyLink/page',
        params:{
            ...params,
           
        }
    })
}
//2.3 获取所有友情链接的接口  
export const getLinksall = params => {
    return request({
        method: 'GET',
        url: '/api/nsc/admin/ndFriendlyLink/list',
        params
    })
}
//2.2 新增保存友情链接接口
export const addLinks = data => {
    return request({
        method: 'POST',
        url: '/api/nsc/admin/ndFriendlyLink/saveOrUpdate',
        data
    })
}
//2.3 删除友情链接 
export const delLinks = data => {
    return request({
        method: 'POST',
        url: '/api/nsc/admin/ndFriendlyLink/del/multiple',
        data
    })
}
// 导航栏配置 /api/nsc/admin/ndFrontMenu/del
// 3.1获取导航配置接口
export const getNavs = params => {
    return request({
        method: 'GET',
        url: '/api/nsc/front/ndFrontMenu/list',
        params
    })
}
//3.2 导航的新增接口  
export const addNavs = data => {
    return request({
        method: 'POST',
        url: '/api/nsc/admin/ndFrontMenu/add',
        data
    })
}
//3.2 导航的新增接口  
export const delNavs = data => {
    return request({
        method: 'POST',
        url: '/api/nsc/admin/ndFrontMenu/del',
        data
    })
}
//3.3 修改导航栏  
export const bjNavs = data => {
    return request({
        method: 'POST',
        url: '/api/nsc/admin/ndFrontMenu/update',
        data
    })
}
//根据名称查询导航结构/api/nsc/admin/ndFrontMenu/getInfosByName
export const getnameNavs = params => {
    return request({
        method: 'GET',
        url: '/api/nsc/admin/ndFrontMenu/getInfosByName',
        params
    })
}

